﻿using Colorful.Furniture.IEntity;
using FreeSql.Internal.Model;
using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;

namespace Colorful.Furniture.PermissionManagement;

/// <summary>
///  数据权限
/// </summary>
public interface IDataPermissionFilter : ITransientDependency
{
    /// <summary>
    ///  筛选
    /// </summary>
    /// <typeparam name="TFilterMain">主要数据权限筛选的实体类</typeparam>
    /// <returns></returns>
    Task<DynamicFilterInfo> FilterAsync<TFilterMain>() where TFilterMain : AuditAggregateRoot, new();
}